<script type="text/javascript">
$ (function (){
	$('#atn').autocomplete(${(type)!'[]'}, {
		max: 12,    //列表里的条目数
		minChars: 0,    //自动完成激活之前填入的最小字符
		width: 220,     //提示的宽度，溢出隐藏
             scrollHeight: 300,   //提示的高度，溢出显示滚动条
             matchContains: true,    //包含匹配，就是data参数里的数据，是否只要包含文本框里的数据就显示
             autoFill: false,    //自动填充
             formatItem: function(row, i, max) {
           	  return i + '/' + max + ':"' + row.atn + '"';
             },
             formatMatch: function(row, i, max) {
           	  return row.atn + row.atc;
             },
             formatResult: function(row) {
           	  return row.atn;
		}
	}).result(function(event, row, formatted) {
		$('#atc').val(row.atc);
	});
});
</script>

<#import "/freemarker/modeltype.ftl" as mt>
<#import "/freemarker/modeltype_entity.ftl" as mte>
<div>
	<h3 class="title"><i class="fontello-icon-th-list-1"></i> 编辑账户信息</h3>
</div>
<div class="widget" >
	<div class="widget-content">
		<form id="editinvAccountForm">
			<table style="width:400px;"  class="table table-bordered animate2 fadeInUp">
				<tr height="40">
					<td style="width: 100px;">账号</td>
					<td>
						<input class="form-control" type="text" id="card" name="card" value="${(invAccount.card)!''}" />
						<input type="hidden" id="code" name="code" value="${(invAccount.code)!''}" />
					</td>
				</tr>
				<tr>
					<td style="width: 100px;">账号类型</td>
					<td><input id="atn" name="atn" value="${(invAccount.atn)!''}" type="text"/>
						<input id="atc" name="atc" value="${(invAccount.atc)!''}" type="hidden"/>
					</td>
				</tr>
				<tr>
					<td colspan="5" style="text-align:center;">
						<div style="margin-top: 20px;">
							<a href="javascript:;" class="btn btn-info" onclick="javascript: save_invAccount(); return false;"><i class="icon-save"></i>&nbsp;保&nbsp;&nbsp;存</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							<a href="javascript:;" class="btn btn-primary" onclick="javascript: sys_load_handle('invAccount');"><i class="icon-block"></i>&nbsp;取&nbsp;&nbsp;消</a>
						</div>
					</td>
				</tr>
			</table>
		</form>
	</div>
</div>